package gameoflife;

public class Cell extends Position {

	private int age = 0;

	public Cell() {
		super();
	}

	public Cell(Position position) {
		super(position);
	}

	public final int getAge() {
		return age;
	}

	public final void setAge(int age) {
		this.age = age;
	}

	public final void age() {
		age++;
	}

	@Override
	public String toString() {
		return super.toString() + " {" + age + "}";
	}
}
